/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2020-11-05
 */
@Data
@ApiModel(value = "EquipmentLogManagement对象", description = "EquipmentLogManagement对象")
public class EquipmentLogManagement implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	* 日志类型code:
1:属性上报；
2:属性读取；
3:属性修改；
4:调用；
5:回复；
6:下线；
7:上线；
8:其他

	*/
		@ApiModelProperty(value = "日志类型code: 1:属性上报； 2:属性读取； 3:属性修改； 4:调用； 5:回复； 6:下线； 7:上线； 8:其他 ")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Integer logType;
	/**
	* 添加时间
	*/
		@ApiModelProperty(value = "添加时间")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Long createTime;
	/**
	* 内容
	*/
		@ApiModelProperty(value = "下发内容")
		private String logContent;
	/**
	* 是否已删除
	*/
		@ApiModelProperty(value = "是否已删除")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Integer isDeleted;
	/**
	* 设备编号
	*/
		@ApiModelProperty(value = "设备编号")
		private String equipmentId;


	@ApiModelProperty(value = "回复消息内容")
	private String pullMessageContent;

	@ApiModelProperty(value = "回复消息时间")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Long pullMessageTime;

	@ApiModelProperty(value = "消息编号")
	private String cmdSeq;

	@ApiModelProperty(value = "指令")
	private String cmd;
}
